macos: fix the position of curosr of input method for macos.
authorZhi <yfwz100@yeah.net>
Mon, 21 Jun 2021 23:20:53 +0000 (07:20 +0800)
committerZhi <yfwz100@yeah.net>
Tue, 22 Jun 2021 14:57:34 +0000 (22:57 +0800)
commit1dbb5188ba2dbb852d494c97b01b45865a23aacb
tree5eadbf356cacfa26858b2f02499ccce5e271724f
parent9169315cc1e9bdc6895b8b82c8002a665f862b20
macos: fix the position of curosr of input method for macos.

In the refactoring from GdkWindow to GdkSurface, GtkWidget no longer
corresponds to a GdkSurface. We have to calculate the relative position
from GtkWidget to the GdkSurface.

Closes #4063.
gtk/gtkimcontextquartz.c